<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<link type="text/css" href="${request.contextPath}/css/alerts/jquery.alerts.css" rel="stylesheet" />
<link type="text/css" href="${request.contextPath}/css/common.css" rel="stylesheet" />
<link type="text/css" href="${request.contextPath}/css/main.css" rel="stylesheet" />
<!--引入jquery-->
<script type="text/javascript" src="${request.contextPath}/js/jquery.alerts.js"></script>
<script type="text/javascript">
	function checkForm()
	{	
		if($('#sname').val()==null || $('#sname').val()=='')
		{
			jAlert("请输入姓名");
			return false;
		}else if($('#scode').val()==null || $('#scode').val()=='')
		{
			jAlert("请输入学号");
			return false;
		}
		else
			return true;
	}
</script>
</head>
<body>
<div class="portlet collapsible" >
	<div class="pageheader">新增学生信息</div>
	<hr>
		<div class="portlet-content">
			<s:form method="post" action="addSave" namespace="/Student">
			<div>
			<table class="InfoTable" >
				<tr>
					<td>姓名：</td>
					<td><input type="text" name="sname" id="sname"/></td>
				</tr>
				<tr>
					<td>性别：</td>
					<td>
						<select id="gender" name="gender">
							<option value="0">女</option>
							<option value="1">男</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>学号：</td>
					<td><input type="text" name="scode" id="scode"/></td>
				</tr>
				<tr>
					<td>状态：</td>
					<td>
						<s:select list="statusList" listValue="tname" listKey="tid" name="studentstatus"></s:select>
					</td>
				</tr>
				<tr>
					<td>证件类型：</td>
					<td>
						<s:select list="tlist" listValue="tname" listKey="tid" id="certtype" name="certtype"></s:select>
					</td>
				</tr>
				<tr>
					<td>证件号：</td>
					<td><input type="text" name="certno" id="certno"/></td>
				</tr>
				<tr>
					<td>出生日期：</td>
					<td><input type="text" name="birthday" id="birthday"/>格式：yyyy-mm-dd</td>
				</tr>
				<tr>
					<td>学生电话：</td>
					<td><input type="text" name="sphone" id="sphone"/></td>
				</tr>
				<tr>
					<td>家长电话：</td>
					<td><input type="text" name="pphone" id="pphone"/></td>
				</tr>
				<tr>
					<td>Email：</td>
					<td><input type="text" name="email" id="email"/></td>
				</tr>
				<tr>
					<td>其他联系方式：</td>
					<td><input type="text" name="otherconnect" id="otherconnect"/></td>
				</tr>
				<tr>
					<td>学生描述：</td>
					<td><textarea name="describe" id="describe"></textarea></td>
				</tr>
				<tr>
					<td>学生来源：</td>
					<td><textarea name="wherecome" id="wherecome"></textarea>
					</td>
				</tr>
				<tr>
					<td>确定课程：</td>
					<td><textarea name="lesson" id="lesson"></textarea></td>
				</tr>
			</table>
			</div>
			<div class="functionButton">
				<s:submit cssClass="submitButton" value='%{getText("PageAction.Ok")}' onclick="return checkForm()"></s:submit>
				<input type="button" class="normalButton" value="<s:text name="PageAction.ReturnToList"/>" onclick="javascript:window.location.href='list.action'"/>
			</div>
			</s:form>
		</div>
</div>
</body>
</html>